package com.lmy.dp01.service;

import com.lmy.dp01.DAO.SCRepository;
import com.lmy.dp01.entity.SC;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.util.List;

@Service
public class SCService {

    @Autowired
    public SCRepository scRepository;


    public List<String> findCno(String sno){
        return scRepository.findCno(sno);
    }

    public List<SC> findAll(){
        return scRepository.findAll();
    }
}
